package enumeration;

/**
 * Created with IntelliJ IDEA
 * Description:枚举学习
 * User:22954
 * Date:2024-01-26
 * Time:3:42
 */

/**
 * enum已经隐形继承了Enum类了，不能再继承别的类
 * enum类仍可以实现接口
 */
public class Test {
    public static void main(String[] args) {
        System.out.println(Season.SPRING);
        System.out.println(Season.WINTER);
        System.out.println(Season.AUTUMN.getName());
        System.out.println(Season2.AUTUMN);

    }
}
